﻿
-- ================================================
-- Remarks: 
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'Dasideen_UserProfileImage_GetByUserKey')
	BEGIN
		DROP  Procedure  Dasideen_UserProfileImage_GetByUserKey
	END

GO

CREATE PROCEDURE [Dasideen_UserProfileImage_GetByUserKey]
-- =============================================
-- Author:		<Sagar s.k>
-- Create date: <12/05/2015>
-- Description:	<Dasideen_UserProfileImage_GetByUserKey>
-- =============================================
-- Add the parameters for the stored procedure here
	(
				@UserKey int
	)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT OFF;

	SELECT	[UserKey],
			[UserLoginID],
			[UserProfileImageData],
			[UserImageType],
			[UserImageFileName],

			[Sys_DateOfCreation],
			[Sys_DateOfModification],
			[Sys_CreatedByID],
			[Sys_ModifiedByID],
			[Sys_DeleteType],
			[Sys_IsDeleted],
			[Sys_OrganizationID],
			[Sys_InitialPrimaryKeys],
			[Sys_WorkstationName]
	FROM	[UserProfileImage]
	WHERE		
		(
			[UserKey] = @UserKey
		);
END
GO
